@import '@/styles/utils.scss';

.settingsButton {
  all: unset;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #71717A;
  transition: all 0.2s ease;

  &:hover {
    background-color: #F4F4F5;
  }

  :global(.dark) & {
    color: #A1A1AA;

    &:hover {
      background-color: #3F3F46;
    }
  }
}

.content {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
  width: 300px;
  padding: 16px;
  border: 1px solid #E4E4E7;
  animation: slideIn 0.2s ease-out;

  :global(.dark) & {
    background-color: #27272A;
    border-color: #3F3F46;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);
  }
}

.field {
  margin-bottom: 16px;

  &:last-child {
    margin-bottom: 0;
  }
}

.label {
  font-size: 14px;
  color: #18181B;
  margin-bottom: 8px;
  display: block;

  :global(.dark) & {
    color: #E4E4E7;
  }
}

.input {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #E4E4E7;
  border-radius: 6px;
  font-size: 14px;
  color: #18181B;
  background: transparent;
  transition: all 0.2s ease;

  &:focus {
    outline: none;
    border-color: #18181B;
    box-shadow: 0 0 0 2px rgba(24, 24, 27, 0.1);
  }

  :global(.dark) & {
    color: #E4E4E7;
    border-color: #3F3F46;

    &:focus {
      border-color: #E4E4E7;
      box-shadow: 0 0 0 2px rgba(228, 228, 231, 0.1);
    }
  }
}

.saveButton {
  margin-top: 10px;
  width: 100%;
  padding: 8px;
  background-color: #18181B;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;

  &:hover {
    background-color: #27272A;
  }

  :global(.dark) & {
    background-color: #E4E4E7;
    color: #18181B;

    &:hover {
      background-color: #A1A1AA;
    }
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
